import 'package:flutter/material.dart';
import 'package:flutter_company_app/model/product.dart';

class ProductDetailPage extends StatelessWidget {
  ProductItemModel item;
  ProductDetailPage({Key key, @required this.item}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(item.name),
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.start,
        children: [
          Image.network(item.imageUrl, fit: BoxFit.cover),
          Padding(
            padding: EdgeInsets.all(10),
            child: Text(item.desc),
          )
        ],
      ),
    );
  }
}
